import Layout from '@/views/layout/Layout'
export const childrenRouter = [
  {
    path: '/projectApi',
    component: Layout,
    redirect: '/projectApi/apiManage',
    name: 'projectApi',
    meta: {
      title: '项目',
      icon: '4_business'
    },
    children: [
      {
        path: 'projectSurvey',
        name: 'projectSurvey',
        component: () => import('@/views/childBlock/project/api/index'),
        meta: {
          tabIsHidden: '0',
          title: '项目概况'
        }
      },
      {
        path: 'apiManage',
        name: 'apiManage',
        component: () => import('@/views/childBlock/project/api/index'),
        meta: {
          tabIsHidden: '0',
          title: 'API'
        }
      },
      // {
      //   path: 'apiText',
      //   name: 'apiText',
      //   component: () => import('@/views/childBlock/project/apiText/index'),
      //   meta: {
      //     tabIsHidden: '0',
      //     title: 'API测试'
      //   }
      // },
      // {
      //   path: 'apiTextDemo',
      //   name: 'apiTextDemo',
      //   component: () => import('@/views/childBlock/project/apiText/index'),
      //   meta: {
      //     tabIsHidden: '0',
      //     title: 'API测试用例'
      //   }
      // },
      // {
      //   path: 'statusCodeDom',
      //   name: 'statusCodeDom',
      //   component: () => import('@/views/childBlock/project/apiText/index'),
      //   meta: {
      //     tabIsHidden: '0',
      //     title: '状态码文档'
      //   }
      // },
      // {
      //   path: 'projectDom',
      //   name: 'projectDom',
      //   component: () => import('@/views/childBlock/project/apiText/index'),
      //   meta: {
      //     tabIsHidden: '0',
      //     title: '项目文档'
      //   }
      // },
      {
        path: 'addApiPage',
        name: 'addApiPage',
        hidden: true,
        meta: {
          tabIsHidden: '0'
        },
        component: () => import('@/views/childBlock/project/api/components/addApiPage')
      },
      {
        path: 'editApiEditPage',
        name: 'editApiEditPage',
        hidden: true,
        meta: {
          tabIsHidden: '0'
        },
        component: () => import('@/views/childBlock/project/api/components/editApiEditPage')
      },
      {
        path: 'editApiPage',
        name: 'editApiPage',
        hidden: true,
        meta: {
          tabIsHidden: '0'
        },
        component: () => import('@/views/childBlock/project/api/components/editApiPage')
      }
    ]
  }
]
